// 获取本地IP
function getIPAddress() {
    var interfaces = require('os').networkInterfaces();
    for (var devName in interfaces) {
        var iface = interfaces[devName];
        for (var i = 0; i < iface.length; i++) {
            var alias = iface[i];
            if (alias.family === 'IPv4' && alias.address !== '127.0.0.1' && !alias.internal) {
                return alias.address;
            }
        }
    }
}
const host = getIPAddress();

module.exports = {
    host: '127.0.0.1',//服务器主机IP
    port: 4000,
    uploadDir: 'static/uploads',
    uploadIP: '127.0.0.1'//服务器公网IP
}